home *** CD-ROM | disk | FTP | other *** search
- CLS,1,25,7,0
- 18,0,15,0,"INTRO TO COMPUTERS-- DOS 5.0"
- ,TUTOR
- MAIN,NULL
- CLS,1,25,3,1
- BOX,1,1,24,80,1,4,1
- 3,0,7,1,"██████ ████ █████ ███████ ████ "
- 4,0,7,1,"█ █ █ █ █ █ █ █ █ █ "
- 5,0,7,1,"█ █ █ █ █ █ █ █ █ "
- 6,0,7,1,"█ █ █ █ █████ ██████ █ █ ███████"
- 7,0,7,1,"█ █ █ █ █ █ █ █ █ "
- 8,0,7,1,"█ █ █ █ █ █ █ █ █ █ "
- 9,0,7,1,"██████ █ ████ █ █████ █ ██████ █ ████ "
- 12,4,3,1,"DOS used to be simple. Loading it onto your system was wonderfully"
- 13,4,3,1,"easy. Now it is complex and takes up a lot of hard disk space and"
- 14,4,3,1,"is more difficult to install. However, there is a reason for this."
- SPACE,3,1
- 16,4,6,1,"DOS is now much more powerful. It offers functions that DOS should"
- 17,4,6,1,"have always offered and contains a DOS SHELL, which for some people"
- 18,4,6,1,"makes computing easier."
- SPACE,6,1
- CLS,1,25,0,2
- 2,4,0,2,"In this lesson we will discuss the advanced commands of DOS 5.0+"
- 3,4,0,2,"(we use the + to indicate additional versions which will undoubtedly"
- 4,4,0,2,"be present very soon) but will not discuss the DOS SHELL-- mainly"
- 5,4,0,2,"because it rather self-explanatory."
- 7,4,0,2,"If you wish to learn more about the DOS SHELL, it is thoroughly and"
- 8,4,0,2,"fully discussed in your DOS manual in an easy-to-understand format."
- 9,4,0,2,"Rather than reinventing the wheel here, we will concentrate on"
- 10,4,0,2,"aspects of DOS 5.0 that may not be so obvious."
- SPACE,2,0
- 12,4,5,2,"We will be primarily discussing new DOS command lines. While we may"
- 13,4,5,2,"touch on aspects such as high memory useage, we will cover these"
- 14,4,5,2,"only briefly. Such things are extremely advanced and complicated"
- 15,4,5,2,"and are beyond the needs and interests of the average user. As a"
- 16,4,5,2,"the purpose of this course is to teach you the computer knowledge"
- 17,4,5,2,"that you will use on an EVERYDAY basis. It is not designed to cover"
- 18,4,5,2,"areas that would be known to a professional systems analyst."
- SPACE,0,2
- CLS,1,25,0,3
- 2,0,1,3,"OUTLINE OF ADDITIONS"
- 3,4,6,3,"DOS 5.0 offers several new additions and changes. Summarized, the"
- 4,4,6,3,"most important of these are:"
- 6,4,0,3," * Ability to load DOS into high memory."
- SPACE,1,3
- 7,4,0,3," * Loading of device drivers into high memory."
- SPACE,3,1
- 8,4,0,3," * Several additional commands including the ability to UNFORMAT"
- 9,4,0,3," and UNDELETE (very helpful in case of accidents)."
- SPACE,1,3
- 10,4,0,3," * EDLIN has a new partner: EDIT, a much more powerful text editor."
- SPACE,3,1
- 11,4,0,3," * Large disk partitions. DOS version 3.3 and before could not"
- 12,4,0,3," create DOS partitions above 32K. Now there is virtually no limit."
- SPACE,1,3
- 13,4,0,3," * You can search for files through multiple directories."
- SPACE,3,1
- 14,4,0,3," * Improved DIR command (more POWER, AR AR AR)."
- SPACE,1,3
- 15,4,0,3," * Commonly used commands may be repeated automatically (ie, MACROS)."
- SPACE,3,1
- 16,4,0,3," * QBASIC is a new, powerful BASIC language program which replaces"
- 17,4,0,3," the old, cumbersome, obsolete GWBASIC and BASICA."
- SPACE,1,3
- 18,4,0,3," * And lots more which is for the specific purpose of frying our brains."
- SPACE,3,1
- 20,0,4,3,"That's it for this screen; prepare to dive in."
- SPACE,1,3
- CLS,1,25,0,4
- 2,0,14,4," ███ ███ ███ ███ ████ █ █"
- 3,0,14,4,"█ █ █ █ █ █ ██ █"
- 4,0,14,4,"█████ ████ ████ █ █ ███ █ █ █"
- 5,0,14,4,"█ █ █ █ █ █ █ █ ██"
- 6,0,14,4,"█ █ ████ ████ ███ ████ █ █"
- 8,4,7,4,"The ASSIGN command switches the ~name~ of a disk drive. This is"
- 9,4,7,4,"sometimes necessary when an ill-behaved program is written to access"
- 10,4,7,4,"only one disk drive, such as A:, B: or C:. If it wants to access"
- 11,4,7,4,"drive C: and you want it instead to use drive D:, you can use the"
- 12,4,7,4,"ASSIGN command as follows:"
- SPACE,15,4
- 14,0,11,4,"ASSIGN C=D"
- 16,4,7,4,"The first letter is the name of the drive you wish to reassign, the"
- 17,4,7,4,"second letter the name of the drive you wish it to recognize. Note"
- 18,4,7,4,"that this doesn't alter the second drive at all. It just causes"
- 19,4,7,4,"both C: and D: to reference the same drive (in this case, D:)."
- SPACE,4,15
- CLS,1,25,1,5
- 2,4,1,5,"Let's try a sample of this. Look at the directory of drive C."
- 3,4,0,5,"C>"
- INPUT,2,3,6,ANY
- IF,2,NOT,DIR,3,40,0,5,"Try: DIR"
- IF,2,NOT,DIR,INPUT,2,3,6,DIR
- 4,4,7,5,"Directory of C:"
- 5,4,7,5,"COMMAND COM 48005 08-16-91 12:00p"
- 6,4,7,5,"AUTOEXEC BAT 386 11-25-92 2:29p"
- 7,4,7,5,"CONFIG SYS 212 10-16-92 10:59a"
- 8,4,7,5," 3 file(s) 48603 bytes"
- 9,4,7,5," 11011920 bytes free"
- 11,4,3,5,"Good. Now look at the directory of drive D."
- 12,4,0,5,"C>"
- INPUT,2,12,6,ANY
- IF,2,NOT,DIR D:,12,40,0,5,"Try: DIR D:"
- IF,2,NOT,DIR D:,INPUT,2,12,6,DIR D:
- 14,4,7,5,"Directory of D:"
- 15,4,7,5,"GAMEFILE EXE 9192 05-09-90 9:43p"
- 16,4,7,5,"DATAFILE DAT 43609 03-10-92 3:10a"
- 17,4,7,5,"TEXTFILE TXT 5873 04-09-91 6:27p"
- 18,4,7,5," 3 file(s) 59784 bytes"
- 19,4,7,5," 5681152 bytes free"
- 21,4,3,5,"Note that both directories are different. That is because they"
- 22,4,3,5,"are directories of different disk drives."
- SPACE,1,5
- CLS,1,25,1,6
- 2,4,2,6,"Now issue an assign command to assign drive C to drive D."
- 3,4,3,6,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,ASSIGN C=D,3,40,0,6,"Try: ASSIGN C=D"
- IF,2,NOT,ASSIGN C=D,INPUT,2,3,6,ASSIGN C=D
- 5,4,2,6,"Now look at the directory of drive C."
- 6,4,3,6,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,DIR,6,40,0,6,"Try: DIR"
- IF,2,NOT,DIR,INPUT,2,6,6,DIR
- 8,4,7,6,"Directory of C:"
- 9,4,7,6,"GAMEFILE EXE 9192 05-09-90 9:43p"
- 10,4,7,6,"DATAFILE DAT 43609 03-10-92 3:10a"
- 11,4,7,6,"TEXTFILE TXT 5873 04-09-91 6:27p"
- 12,4,7,6," 3 file(s) 59784 bytes"
- 13,4,7,6," 5681152 bytes free"
- 15,4,3,6,"Note that drive C now has the same directory as drive D. That is"
- 16,4,3,6,"because we have indicated to the computer that drive C is drive D."
- SPACE,7,6
- CLS,1,25,1,7
- 2,0,5,7,"█████ ███ █ █ "
- 3,0,5,7,"█ █ █ █ █ "
- 4,0,5,7,"█ █████ █ █ "
- 5,0,5,7,"█ █ █ █ █ "
- 6,0,5,7,"█████ █ █ █████ █████"
- 8,4,1,7,"When using batch files, you may wish to have one batch file call upon"
- 9,4,1,7,"another batch file (for example, when using AUTOEXEC.BAT to call upon"
- 10,4,1,7,"the X.BAT file as we discussed in menuizing your computer). This works"
- 11,4,1,7,"unless you wish then to return right to the place you left off in"
- 12,4,1,7,"your first batch file."
- SPACE,7,1
- 14,4,0,7,"When you try to do this, a problem occurs because the computer loses"
- 15,4,0,7,"track of where it was in the first batch file. Let's show you an"
- 16,4,0,7,"example to explain what we mean. Examine the following two files:"
- SPACE,1,7
- CLS,1,25,0,0
- 2,4,6,0,"TEST.BAT: MENU.BAT:"
- 3,4,4,0,"ECHO OFF ECHO OFF"
- 4,4,4,0,"CLS ECHO 1- WORD PROCESSING"
- 5,4,4,0,"ECHO PRESS ENTER TO SEE MENU ECHO 2- SPREADSHEET"
- 6,4,4,0,"PAUSE >NUL ECHO 3- DATABASE"
- 7,4,4,0,"MENU"
- 8,4,4,0,"ECHO ENTER YOUR CHOICE NOW"
- SPACE,0,2
- 10,4,2,0,"You would ordinarily expect the TEST.BAT file to prompt the user"
- 11,4,2,0,"to PRESS ENTER TO SEE MENU and then display that menu, following"
- 12,4,2,0,"which it would return to the first batch file and tell the user to"
- 13,4,2,0,"ENTER YOUR CHOICE NOW. However, this doesn't happen. Try it by"
- 14,4,2,0,"executing the TEST.BAT file:"
- 16,4,7,0,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,TEST,16,40,0,7," TRY: TEST "
- IF,2,NOT,TEST,INPUT,2,16,6,TEST
- CLS,1,25,3,1
- 1,4,3,1,"PRESS ENTER TO SEE MENU"
- INPUT,2,2,4,ANY
- 3,4,3,1,"1- WORD PROCESSING"
- 4,4,3,1,"2- SPREADSHEET"
- 5,4,3,1,"3- DATABASE"
- 6,4,3,1,"C>"
- SPACE,1,3
- 8,4,2,1,"As you can see, the computer ended the batch function right after it"
- 9,4,2,1,"finished with the second batch file. It never returned to the first"
- 10,4,2,1,"batch file to execute the final command."
- SPACE,3,1
- 12,4,2,1,"We fix this by using the CALL command as follows:"
- 13,4,6,1,"TEST.BAT: MENU.BAT:"
- 14,4,7,1,"ECHO OFF ECHO OFF"
- 15,4,7,1,"CLS ECHO 1- WORD PROCESSING"
- 16,4,7,1,"ECHO PRESS ENTER TO SEE MENU ECHO 2- SPREADSHEET"
- 17,4,7,1,"PAUSE >NUL ECHO 3- DATABASE"
- 18,4,7,1,"CALL MENU"
- 18,4,13,1,"CALL"
- 19,4,7,1,"ECHO ENTER YOUR CHOICE NOW"
- SPACE,3,1
- 21,4,2,1,"This simple addition will cause the MENU.BAT file to return to the"
- 22,4,2,1,"ECHO ENTER YOUR CHOICE NOW line of the TEST.BAT file after the"
- 23,4,2,1,"MENU.BAT file has completed its task."
- SPACE,1,3
- CLS,1,25,1,3
- 2,4,1,3,"Execute the TEST.BAT file again:"
- 3,4,0,3,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,TEST,3,40,3,0," TRY: TEST "
- IF,2,NOT,TEST,INPUT,2,3,6,TEST
- CLS,1,25,1,3
- 1,4,1,3,"PRESS ENTER TO SEE MENU"
- INPUT,2,2,4,ANY
- 3,4,1,3,"1- WORD PROCESSING"
- 4,4,1,3,"2- SPREADSHEET"
- 5,4,1,3,"3- DATABASE"
- 6,4,1,3,"ENTER YOUR CHOICE NOW"
- 7,4,1,3,"C>"
- SPACE,1,3
- 9,4,4,3,"We can see now that the MENU.BAT file returned to the TEST.BAT file"
- 10,4,4,3,"after completion of its own operations."
- SPACE,3,1
- CLS,1,25,14,4
- 2,0,14,4,"████ █ ████ █ ███ "
- 3,0,14,4,"█ █ █ █ █ █ █ █"
- 4,0,14,4,"█ █ █ ████ █ █ █"
- 5,0,14,4,"█ █ █ █ █ █ █ █"
- 6,0,14,4,"████ █ █ █ █ ███ "
- 8,4,7,4,"We have learned that the DIR command will show us a listing of the"
- 9,4,7,4,"current directory. The above form of this command will sort the"
- 10,4,7,4,"listing in alphabetical order. A simplified example follows:"
- SPACE,4,7
- 12,4,3,4," DIR DIR/O"
- 13,4,2,4,"DIRECTORY OF DRIVE C DIRECTORY OF DRIVE C"
- 14,4,2,4,"THISPROG.EXE ANOTHER.DAT"
- 15,4,2,4,"ANOTHER.DAT NEWINFO.TXT"
- 16,4,2,4,"NEWINFO.TXT THISPROG.EXE"
- SPACE,4,7
- 18,4,7,4,"As you can see, the above information is in alphabetical order"
- 19,4,7,4,"in the second column."
- SPACE,4,14
- CLS,1,25,0,5
- 2,0,2,5,"█████ █ █ █ █████"
- 3,0,2,5,"█ █ █ █ █ "
- 4,0,2,5,"████ █ █ █ "
- 5,0,2,5,"█ █ █ █ █ "
- 6,0,2,5,"█████ █ █ █ █ "
- 8,4,3,5,"A command that is being used more and more as programs become more"
- 9,4,3,5,"advanced is EXIT. This command is used when you ~shell~ to DOS"
- 10,4,3,5,"(ie drop from one program temporarily into DOS and then return to the"
- 11,4,3,5,"same program when finished with your DOS function)."
- SPACE,5,3
- 13,4,3,5,"For example, imagine that you are using a word processor and you want"
- 14,4,3,5,"to jump to DOS for a moment so that you can look up an address in your"
- 15,4,3,5,"address file. If the word processor has a SHELL TO DOS or similar"
- 16,4,3,5,"function, you can use this to go to DOS, examine your address list"
- 17,4,3,5,"and then return back to your program."
- SPACE,3,5
- 19,4,3,5,"However, your computer will not know to return to your first program"
- 20,4,3,5,"unless you tell it to. This is where the above command is used. EXIT"
- 21,4,3,5,"means"
- 21,10,7,5,"return to the program from which the shell was executed."
- 22,4,3,5,"Let's try it..."
- SPACE,5,3
- CLS,1,25,0,6
- 2,4,0,6,"DREW'S SPECIAL TEXT EDITING SYSTEM"
- KEY,4,SHELL
- 4,4,0,6,"F1-Spell check F2-Load F3-Save F4-Drop to DOS F5-Exit program "
- 6,4,0,6,">"
- INPUT,2,0,0,ANY
- IF,2,NOT,SHELL,6,40,6,0," Press the F4 function key and ENTER "
- IF,2,NOT,SHELL,INPUT,2,6,5,SHELL
- CLS,1,25,0,7
- 2,4,0,7,"C>"
- 14,4,4,7,"Now look at the address list, which is called ADDRESS (note: I'm lazy,"
- 15,4,4,7,"so it only contains one address)."
- INPUT,2,2,6,ANY
- IF,2,NOT,TYPE ADDRESS,2,40,7,0," TRY: TYPE ADDRESS "
- IF,2,NOT,TYPE ADDRESS,INPUT,2,2,6,TYPE ADDRESS
- 3,4,0,7,"JANE SMITH"
- 4,4,0,7,"3224 ANY STREET"
- 5,4,0,7,"YOURTOWN, US 12345"
- 7,4,0,7,"C>"
- 20,4,5,7,"Now return back to the editing system."
- INPUT,2,7,6,ANY
- IF,2,NOT,EXIT,7,40,7,0," TRY: EXIT "
- IF,2,NOT,EXIT,INPUT,2,7,6,EXIT
- CLS,1,25,0,6
- 2,4,0,6,"DREW'S SPECIAL TEXT EDITING SYSTEM"
- KEY,4,SHELL
- 4,4,0,6,"F1-Spell check F2-Load F3-Save F4-Drop to DOS F5-Exit program "
- 6,4,0,6,">"
- 9,4,1,6,"Very good. Now you see how the EXIT command works."
- SPACE,6,1
- CLS,1,25,0,0
- 2,0,2,0,"██ ██ █████ ██ ██"
- 3,0,2,0,"█ █ █ █ █ █ █ █ █"
- 4,0,2,0,"█ █ █ ████ █ █ █"
- 5,0,2,0,"█ █ █ █ █"
- 6,0,2,0,"█ █ █████ █ █"
- 8,4,3,0,"We have discussed the CHKDSK function, which reports on the status of"
- 9,4,3,0,"your disk drive and DOS memory. But sometimes you may wish to just"
- 10,4,3,0,"know how much memory you have and you may wish to know, with today's"
- 11,4,3,0,"more modern computers, how your extra memory is set up. This command"
- 12,4,3,0,"provides just that information without taking all the time that is"
- 13,4,3,0,"taken up by CHKDSK. Try it:"
- SPACE,0,3
- CLS,1,25,0,0
- 2,4,4,0,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,MEM,2,40,0,4," TRY: MEM "
- IF,2,NOT,MEM,INPUT,2,2,6,MEM
- 4,4,4,0," 655360 bytes total conventional memory"
- 5,4,4,0," 655360 bytes available to MS-DOS"
- 6,4,4,0," 588352 largest executable program size"
- 8,4,4,0,"1310720 bytes total contiguous extended memory"
- 9,4,4,0," 0 bytes available contiguous extended memory"
- 10,4,4,0,"1245184 bytes available XMS memory"
- 11,4,4,0," MS-DOS resident in High Memory Area"
- 15,4,5,0,"As you can see, MEM works very quickly and gives you much more memory"
- 16,4,5,0,"information than does CHKDSK."
- SPACE,0,5
- CLS,1,25,0,1
- 2,0,3,1,"█ █ █ █ ████ █████ █ █████ █████ █████"
- 3,0,3,1,"█ █ ██ █ █ █ █ █ █ █ █ "
- 4,0,3,1,"█ █ █ █ █ █ █ ████ █ ████ █ ████ "
- 5,0,3,1,"█ █ █ ██ █ █ █ █ █ █ █ "
- 6,0,3,1," ███ █ █ ████ █████ █████ █████ █ █████"
- 8,4,2,1,"One of the most valuable new commands offered is UNDELETE. This is used"
- 9,4,2,1,"to recover a file if you accidentally DELete it."
- SPACE,1,2
- 11,4,2,1,"There are several uses of this command, all very easy:"
- 13,4,7,1,"UNDELETE filename"
- 13,40,1,7,"Recovers a specific file"
- 14,4,7,1,"UNDELETE /LIST"
- 14,40,1,7,"Lists recoverable files"
- 15,4,7,1,"UNDELETE *.*"
- 15,40,1,7,"Recovers all deleted files"
- SPACE,7,1
- 18,4,14,1,"WARNING!!! This command can only work if you have not altered your"
- 19,4,14,1,"disk in any way since the deletion. If you have saved a new file"
- 20,4,14,1,"to disk, added to a current file or in any way altered your disk"
- 21,4,14,1,"since the time that you deleted the file, there is a chance that"
- 22,4,14,1,"UNDELETE may not be able to recover it. So if you accidentally"
- 23,4,14,1,"DELete a file, UNDELETE it right then... do not wait until later!"
- SPACE,1,7
- CLS,1,25,0,2
- 1,4,0,2,"Imagine that a file called TEST.DAT has been deleted, then you discover"
- 2,4,0,2,"that you badly need some information that is in that file. Issue the"
- 3,4,0,2,"standard UNDELETE filename command:"
- 3,13,5,2,"UNDELETE filename"
- 5,4,1,2,"C>"
- INPUT,2,0,0,ANY
- IF,2,NOT,UNDELETE TEST.DAT,5,40,2,1," TRY: UNDELETE TEST.DAT "
- IF,2,NOT,UNDELETE TEST.DAT,INPUT,2,5,6,UNDELETE TEST.DAT
- 6,4,1,2,"Directory: C:\"
- 7,4,1,2,"File Specifications: TEST.DAT"
- 9,4,1,2," MS-DOS directory contains 1 deleted files."
- 10,4,1,2," Of those, 1 files may be recovered."
- 12,4,1,2,"Using the MS-DOS directory."
- 14,4,1,2," ?EST.DAT 9 12-01-92 7:13p ...A Undelete (Y/N)?"
- INPUT,2,14,63,ANY
- IF,2,NOT,Y,23,4,2,1," TRY: Y "
- IF,2,NOT,Y,INPUT,2,14,63,Y
- 23,4,0,2," "
- 15,4,1,2," Please type the first character for ?EST.DAT :"
- INPUT,2,15,54,ANY
- IF,2,NOT,T,23,4,2,1," TRY: T "
- IF,2,NOT,T,INPUT,2,15,54,T
- 23,4,0,2," "
- 17,4,1,2,"File successfully undeleted."
- SPACE,2,1
- 19,4,10,2,"The system asks you to supply the first character, because when a"
- 20,4,10,2,"file is deleted, the first character is erased from the filename"
- 21,4,10,2,"and the computer does not know what that character might be."
- SPACE,1,2
- CLS,1,25,0,3
- 2,0,0,3,"█ █ ████ ███ ████ █ █"
- 3,0,0,3," █ █ █ █ █ █ █ █ █ "
- 4,0,0,3," █ █ █ █ ████ █ "
- 5,0,0,3," █ █ █ █ █ █ █ "
- 6,0,0,3,"█ █ ████ ███ █ █ "
- 8,4,1,3,"XCOPY is a nifty new command that combines somewhat the DISKCOPY and"
- 9,4,1,3,"COPY commands. It has several abilities, but one of the fanciest and"
- 10,4,1,3,"most valuable is the ability to make a copy of a disk between disk"
- 11,4,1,3,"drives of differing sizes. DISKCOPY cannot do this."
- SPACE,3,1
- 13,4,1,3,"There are limitations to XCOPY. Since it does not do a bit-by-bit"
- 14,4,1,3,"transfer like DISKCOPY, there are some disks that XCOPY cannot copy."
- 15,4,1,3,"XCOPY cannot transfer system or hidden files, so for example it cannot"
- 16,4,1,3,"be used to copy self-booting disks. But it is great for transferring"
- 17,4,1,3,"standard program and data disks."
- SPACE,1,3
- 19,4,1,3,"The most standard use of XCOPY is:"
- 20,0,5,3,"XCOPY d1: d2: /E /S"
- 22,0,1,3,"This command copies from disk d1 to disk d2, copying all subdirectories"
- 23,0,1,3,"even if they are empty."
- SPACE,3,1
- CLS,1,25,0,4
- 2,0,14,4,"█████ █ █ █ █ █ █ █ █ █ ███ █ █"
- 3,0,14,4," █ █ █ █ █ ██ █ █ █ █ █ █ █ █ █"
- 4,0,14,4," █ █████ █ █ █ █ █ ███ ███ █ █ █ █"
- 5,0,14,4," █ █ █ █████ █ ██ █ █ █ █ █ █ █"
- 6,0,14,4," █ █ █ █ █ █ █ █ █ █ ███ ███ "
- 10,0,0,4,"...for registering for the AMAZING COMPUTER COURSE. We really"
- 11,0,0,4,"appreciate your financial support. Your registration allows us to"
- 12,0,0,4,"continue producing fine programs at reasonable prices."
- 17,0,15,4,"This concludes the lesson on DOS 5.0+"
- SPACE,4,0
-
-